package com.android.jnidemo01;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    static {
        System.loadLibrary("helloworld");
    }

    private  static native String  helloWorld();
    TextView  textViewShowMsg=null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        textViewShowMsg=(TextView)findViewById(R.id.textViewShowMsg);
        textViewShowMsg.setText("测试jni返回结果:"+helloWorld());
    }
}